# Contributor: Matthew T Hoare <matthew.t.hoare@gmail.com>
# Maintainer: Matthew T Hoare <matthew.t.hoare@gmail.com>
pkgname=dk
pkgver=1.6
pkgrel=0
pkgdesc="tiling window manager taking inspiration from dwm, bspwm, and xmonad"
url="https://bitbucket.org/natemaia/dk"
arch="all"
license="MIT"
makedepends="libxcb-dev xcb-util-dev xcb-util-wm-dev xcb-util-cursor-dev xcb-util-keysyms-dev"
options="!check" # no tests
install="$pkgname.post-install"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://bitbucket.org/natemaia/dk/get/v$pkgver.tar.gz
	dk.desktop"
builddir="$srcdir"/natemaia-dk-9d5cec90f346

build() {
	make PREFIX=/usr
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
	install -d 644 "$pkgdir"/usr/share/xsessions
	install -Dm 644 "$srcdir"/dk.desktop "$pkgdir"/usr/share/xsessions/dk.desktop
}

sha512sums="
73b312aa57562778c2a4dfc0abef7abc8726b8e3d3b0ce9e650ad219e00669e8e9de499d5aa7a7e0e0f38d5329ed2679978664ce1693fb24db6a51489aa645c3  dk-1.6.tar.gz
4d8e8e44b39b47621f9643708b6376178131495fde2b6a8c13d00f9f293f6b4c5adfba8f5000ce3588c86187fb4545f5f26e04b6837ac43e844b11ec28b199cb  dk.desktop
"
